import 'dart:async';

import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';

part 'loading_event.dart';

class LoadingBloc extends Bloc<LoadingEvent, bool> {
  LoadingBloc() : super(null);

  @override
  Stream<bool> mapEventToState(LoadingEvent event) async* {
    yield event.isLoading;
  }
}
